//**********************************************************************
//	Programmer	-	Sujal Bista
//	File Name	-	global.h
//	Description	:	
//					Global Variables
//
//**********************************************************************

#ifndef _GLOBAL_H_
#define _GLOBAL_H_ 

//compile only once
#pragma once

#ifdef _MSC_VER
	#ifdef _DEBUG
		#define _CRTDBG_MAP_ALLOC
	#endif		

	#pragma warning( disable : 4996 4995 4201 4100)

    // Exclude rarely-used stuff from Windows headers
	#define WIN32_LEAN_AND_MEAN		

	// Windows Header Files:
	#include <windows.h>

#endif

	#ifndef PI
		#define PI 3.14159265f
	#endif

	#ifndef RAD2DEG
		#define RAD2DEG(theta) (theta*(180.0f/PI))
	#endif

	#ifndef DEG2RAD
		#define DEG2RAD(theta) (theta*(PI/180.0f))
	#endif

	#ifndef MAX
		#define MAX(a,b) ((a>b)?a:b)
	#endif

	#ifndef MIN
		#define MIN(a,b) ((a<b)?a:b)
	#endif

	#ifndef SWAP
		#define SWAP(x,y,temp) {temp=x; x=y; y=temp;}
	#endif

	#ifndef CLAMP
		#define CLAMP(x, low, high)  (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
	#endif

	//include the basic data types
	#include "dataTypes.h"


#endif